secant method for finding root of a quadratic equation