implement class BinarySearchTree