Simplifying the GLM function

CV is outisde GLM, statistics are printed into RRegrsResBySplit.csv.
Each row corresponds to a data set splitting, CV type and regression
method.