allPairs
slow
faster