added BinaryTree functions;