program on Secant method