Simple machine learning algorithms