Update countInversions.cpp