Some Simple machine learning algorithms in R