Fix bug in create edge exposed by extract contour.
When points are repeated in the input, the code which decided whether the segment intersection code had reversed a segment was not behaving properly (because the input segment did not have a proper orientation). So, when creating segments from the input points, ignore duplicates.