Iterative merge sort