Integrating the updated iterative merge sort algorithm to inversions.