Add vector to store the vertex of rectangles to group the adjacent rectangles into a single big rectangle