Update CountInversions.java