l-bfgs fixes
Merge pull request #2 from axydes/sgd_fixes

l-bfgs fixes