Generating CV indices

This code needs the 3 parameters : number of trials, number of voxels,
and the number of folds of the cross validation. It outputs the indices.