// compute the center distances of entries to the node and sort it
// in decreasing order to their distances
for(int i = 0; i < node.getNumEntries(); i++) {
E entry = node.getEntry(i);
DoubleDistance dist = distFunction.centerDistance(node, entry);
reInsertEntries[i] = new DistanceEntry<DoubleDistance, E>(entry, dist, i);
}
Arrays.sort(reInsertEntries, Collections.reverseOrder());
// define, how many entries will be reinserted