adding trie