Quad tree merge
Rebuild binary tree from node pairs