binary search tree code update