Split a dataset for Cross Validation taking into account class balance
balanced.cv.fold(y, num.cv = 10)
the class labels of each sample of the dataset
number of cross validation required
a factor of num.cv levels that assign to each sample a test fold