Generic k-fold cross validation function
Use kCV to estimate train & test errors for the regression dataset