generate matrices

create functions to generate matrices. The input of these functions is a
dataset (a file). For example: generateCBMFMatrices('data_batch_1.mat')