untested sweep line and Bentley-Ottman implementation
Refactorings