wrote constructor for sortMerge