pub fn find_all_duplicates<T>(iter: &[T]) -> Vec<T> where
    T: Eq + Hash + Clone,