Fix errors on count-inversions. Debugging instructions.