by using the indices from the sorted distance vector of pairs.
Attach a file by drag & drop or click to upload