Generic cv function
cv(x, ...)
x
model to do cv on
...
further arguments passed to the class-specific function