// Entries from eliminated leaf nodes are reinserted in tree leaves as in
// Insert(), but entries from higher level nodes must be placed higher in
// the tree, so that leaves of their dependent subtrees will be on the same
// level as leaves of the main tree
while (eliminatedNodeIds.size() > 0) {
Node e = getNode(eliminatedNodeIds.pop());
for (int j = 0; j < e.entryCount; j++) {
add(e.entriesMinX[j], e.entriesMinY[j], e.entriesMaxX[j], e.entriesMaxY[j], e.ids[j], e.level);
e.ids[j] = -1;
}
e.entryCount = 0;