Amending binary search tree