TernarySearchTree(Trie) code started