Inversion Count with Fenwick Tree Modified