Finding the roots of a quadratic equation with leading coefficient 1