K-way-merge-sort