Fix bug in slopeTo().
Fix sign bug in compareTo().
Change order of printing out line segments.