pub fn intersect<T>(v1: &[T], v2: &[T]) -> bool where
    T: PartialEq