Adding linear and logistic learning algorithms and simple RBM