Inversion number solved via Merge-Sort