Did Cleanup in the LineSegment class and added polar functions to that class