finished implementation of binary search tree.