Depends on what you mean by "merge". It would be easier to just have a setLeft and a setRight method that would change the left and right branches of the tree.