Three Basic Machine Learning Algorithms