added trie class