pub fn selection_sort_stepped<T>(arr: Vec<T>) -> (Vec<T>, Vec<(Vec<T>, Vec<T>)>) where
    T: PartialEq + PartialOrd + Clone + Copy
Expand description

The selection sort algorithm but stepped.

Sorts the given Vec and returns the result and a Vec containing the steps of the process as a tuple of the unsorted and sorted array.