Merging two diffrent trees into one tree