added initial countInversions.js