counting inversions+strassen matrix multipliation