rbm code

please feel free to check and debug, thanks !
Matrix Class

Matrix calculation
Merge pull request #1 from gengtao/master

jia's pull