Added crossvalidation basic training algorithm