Factoring Polynomials Using Quadratic Methods