BFGS and Wolfe condition working