Covering of polygons by rectangles