optimization: order points before origin

As the points before origin is sorted according to SLOPE_ORDER, when we
find a segment and want to make sure if this is a overlapping one, we
don't need to traverse from 0 to i any more, just record a pointer to
move forward along with the points after the origin.