routines for Machine Learning in R