started trie implementation