How to find the roots of a quadratic equation?