handling intersections of more than two lines in one point