Change < to <= to be consistent with split inversion method
Initial commit of sort_and_countinversions