Create countInversions.cpp

count inversions using merge sort algo