pub fn create_clean_partitions<T>(
    values: &[T],
    n: usize,
    reverse: bool
) -> Vec<&[T]>where
    T: Debug + NativeType + PartialOrd,