Update binary search tree