Working on the CPU deep belief implementation.