Merge binary tree