Added sigmoid function to RBM.