Got done with sortedMerge