added mergesort option for heterogeneous create