pub fn inclusive_scan(data: &[f64]) -> Vec<f64>
Inclusive scan: result[i] = sum(data[0..=i]).
result[i] = sum(data[0..=i])