Merge N sorted files