Machine learning algorithms in R