Add functionality to BinarySearchTree.