A practical solution to massive parallel computing in R with caret machine learning and foreach examples