simplify the binary search tree methods