To find the number of inverse pairs of a array