I have a list of pairs like this:
[(1,2),(2,3)]
I want to check that for all elements that agree on the first element, they also agr