Implementations of common machine learning algorithms