Added a 2D line class

A 3D line class could follow the same format