simplified, vectorized routine to calculate the Gini coefficients