RBM class for single iteration
half done. commit for experiments