Machine learning algorithm implementations