Machine learning algorithms' implementation