Most of kNN finished. Small bug thou, it does not finish