finish binary search tree