set up Trie data type