Simplified the trie