add Trie implementation