L-BFGS Optimizer based on Breeze's implementation.