KNN_AGG function

Aggregated k-nearest neighbors distance over different k's