Karatsuba main implementation
counting inversion using merge Sort