added calculation of the zorder range for a node and optimization change to reduce the recursion load during Visit() calls.