iteration over folds added, cbrAlgorithm moved to separate file