pub fn minmax<T: PartialOrd + Clone>(xs: &[T]) -> (T, T)
Returns a tuple (min_elem, max_elem).
Faster than calling min and max individually