obtain solution of second order quadratic equation