Factoring Polynomials In Quadratic Form