Moved crossValidation method from ModelUtils to  CrossValUtils
to get a rid of NoClassFoundException if using generated code.