Build rectangle to nodes map in Node class