started working on sortedMerge