start knn and this is the first step,this step uses the threshold