generalized n-fold cross validation

This is a bit late, but want to merge it in anyways.

Thanks!