added GetMerged plus fixed important bug using folded 2D prior