precalculates all node ranges