fn histogram(data: &[f64], bins: usize) -> (Vec<usize>, Vec<f64>)
Simple histogram: returns (counts, edges) with bins equal-width buckets.
bins