Inversions number in array algorithm was implemented and tested