k-way lazy merge sort