Created ReplicatedSoftmax layer.

Figuring out how to fit the sampling procedure into the RBM code.