}
else if(minDist.compareTo(pr_knn_distance) <= 0 || minDist.compareTo(ps_knn_distance) <= 0) {
pq.add(new Task(minDist, i, j));
}
if(mprogress != null) {
mprogress.incrementProcessed(logger);
}
}
}
if(mprogress != null) {
mprogress.ensureCompleted(logger);