implemented treatLeftEndPoint, calculation of an intersection points of two stretches