Working on the CPU implementation of deep belief.