pub fn parameter_grid(axes: &[Vec<f64>]) -> Vec<Vec<f64>>
Every combination of the values on each axis (the Cartesian product), first axis slowest.