Implement a trie-based tokenizer | xAI