major bug fix in how training data is shuffled in cross validation