Wrote the initial rbm and predict.rbm code

Also wrote an example that seems to produce the same results as Edwin
Chen's code.
Added use_mini_batches parameter