Added a new structure that allows to reuse most of the code from the deep belief net (rmsprop,  nesterov, momentum)