secant method improved by cashing the computed values of the functions