How to get the roots of a quadratic equation?