SRM574_DIV2_1000: bugfix in Intersect; function CanConnect checks whether a new point can be added to tail set.