Add routine for checking intersection of polygons