Factor Polynomials By Grouping