Refactors on rbmTrain.m.

Add a simple script that can reshape the whole
training data into batches of training data.