Added k_tree_init() and k_tree_free().