finding the roots of polynomials