Issue: write the code of lbfgs