fn percent_update(x: &[f64], x_prev: &[f64]) -> f64
Percent update 100 * ||x - x_prev|| / ||x||.
100 * ||x - x_prev|| / ||x||