pub fn get_num_unpairs_external(
    x: &Vec<(usize, usize)>,
    y: SeqSlice<'_>
) -> usize