Implemented BinarySearchTree.