fixed some compiler errors.  assuming things ever converge on a single fold, it will do 10 folds.  I need to change the random selection to not always start with the same seed.