Implementation of some machine learning algorithms