Merge binary search tree