Implementation of Linear Regression and kNN machine learning algorithms