add Line and Ray
implementing Ray and Segment