TSTree_destroy and TSTree_search_prefix