Algo 1 karatsuba mult and mergesort inversion count