add parallel cv

run cross validation in parallel using foreach