starting plane sweep algo for segment intersection detection