Alternate way to build merged tree