Ternary Search Trie Data Structure