pub fn gini_coefficient(sorted: &[usize]) -> f64
Return the Gini coefficient for an ascending-sorted integer slice.