finding roots of quadratics