add trie data structure