changed typedef Tree to trie_t