Trie data structure.