code: def merge_and_fit(self, segment):
          
          self.points = sort_segment_points(self.points, segment.points)
          return self
docs: Merges another segment with this one, ordering the points based on a
              distance heuristic
  
          Args:
              segment (:obj:`Segment`): Segment to merge with
          Returns:
              :obj:`Segment`: self