Update inversion_counting.py