Added demos for sgd, lbfgs, cg, bfgs