add sweep line algorithm