fixes in deep belief network, added an abstraction for each dbn layer
solving merge conflicts