step-by-step solver for factoring polynomials by grouping