finished #40 binary search tree.