Update: first point of segment must always have smaller x