Added computation of perpendicular bisector + refactored intersection