docs: private DataStore<DBIDs> getLocalities(DBIDs medoids, DistanceQuery<V> distFunc, RangeQuery<V> rangeQuery) {
      WritableDataStore<DBIDs> result = DataStoreUtil.makeStorage(medoids, DataStoreFactory.HINT_TEMP | DataStoreFactory.HINT_HOT, DBIDs.class);
  
      for(DBIDIter iter = medoids.iter(); iter.valid(); iter.advance()) {
        // determine minimum distance between current medoid m and any other
        // medoid m_i
        double minDist = Double.POSITIVE_INFINITY;
        for(DBIDIter iter2 = medoids.iter(); iter2.valid(); iter2.advance()) {
          if(DBIDUtil.equal(iter, iter2)) {
            continue;
          }
          double currentDist = distFunc.distance(iter, iter2);
          if(currentDist < minDist) {
            minDist = currentDist;
          }
        }
  
        // determine points in sphere centered at m with radius minDist
        assert minDist != Double.POSITIVE_INFINITY;
        result.put(iter, rangeQuery.getRangeForDBID(iter, minDist));
      }
  
      return result;
    }