fix the number of neighbours for KNN to be exact; remove self references in KNN lists