Fixed MergeSort for files that fit completely into memory