sorting correctly but not counting inversions correctly