added trie data structure support