add array inversion counting algorithm
add a main method and support for large counts