pub fn ShannonEntropy(
    population: &[u32],
    size: usize,
    total: &mut usize
) -> floatX