quick n dirty implementation of the scanline algorithm to fill arbitrary polygons