BinaryTree delete_tree function implementation