Added module to count number of inversions in a list