finding the roots of quadratic equation