getLCL2 and getRLCL slight modification for L-BFGS