pub fn heapsort<T: Ord>(slice: &mut [T])
Sorts a slice using heapsort (in place, O(n log n) worst case).