Fixed problem in cross validation function
Merge remote-tracking branch 'origin/master'