pub fn min_argmin<T: Ord + Copy>(x: &[T]) -> (T, Vec<usize>)
return the minimum value and all indices that have the min value