Implementation of various machine learning algorithms