Create rbm.cpp

c++ implementation for rbm