add training of neural network using LBFGS