pub fn is_sorted_and_unique<T>(data: &[T]) -> bool where
    T: Ord