Add cross-validation function and RMSE function.