add destruction function for trie_tree to avoid resource leaks in application