added weight-decay option for L-BFGS training