Homemade Machine Learning Algorithms