Minimizer of functions using approximate Hessian BFGS & limited memory BFGS