completed the knn and quick script that runs everything