stanford_algorithms1_pq1_InversionsCounter - completed for nlogn