reindexFrom method
Refreshes indexByNid entries for positions in [startIndex, length).
Call after inserts at startIndex or after a contiguous removal that
shifted the suffix.
Implementation
void reindexFrom(int startIndex) {
for (int i = startIndex; i < _len; i++) {
_indexByNid[_orderNids[i]] = i;
}
}