Implementation of kNN and Random Forest algorithms.