pub fn binary_insertion_sort<T, F>(arr: &mut [T], compare: F)where F: Fn(&T, &T) -> Ordering,
Binary insertion sort with comparison function.