Added cross validation partitioning function (for now only for oneSub)