pub fn has_canonical_basepair(x: &(usize, usize)) -> bool