private void ResizeChildren(int nodeId)
{
int length = childCount[nodeId];
int size = (int)(GROWTH_RATE * length);
if (size < DEFAULT_CHILDREN_INITIAL_SIZE)
{
size = DEFAULT_CHILDREN_INITIAL_SIZE;
}
int[] oldNodeChildren = nodeChildren[nodeId];
nodeChildren[nodeId] = new int[size];
Array.Copy(oldNodeChildren, 0, this.nodeChildren[nodeId], 0, length);
}