Added factorPairs() function, returns a list of tuples of factor pairs.