add Line2d class, and intersection functions