Store rects in a list of lists