pub fn get_sorted_indices<T>(slice: &[T], reverse: bool) -> Vec<usize>where T: Clone + Ord,
Get sorted indices from unsorted slice.