add methods used for LBFGS in CLaplacianInferenceMethodWithLBFGS
complete the implementation of LaplacianInferenceMethodWithLBFGS