creates the feature and the label matrices
create the cross validation partitions
function to learn best model configuration