Various implementations of machine learning algorithms