Added Getters and Setters to the LineSegment class