Increased speed by caching all possible selections

This quick hack avoids having to go through all the rectangles and focuses on two groups of nodes: the last one selected (need to turn color back off) and the new selection.    All possible selections have been cached in the node object.