Adds cross validation methods.