Machine learning, algorithm implementation