Exact Line Search Method Matlab