Algorithm For Secant Method Matlab