Add K-way merge sort for extern file