trie implementation for a second trie.