I will change this to use ccw as the sort comparator. Then dups of inp[best] will be equal to everything, hence the sort behaviour will not be well-defined for them. Nevertheless, they will be dropped from the hull during the scan wherever they end up in the sort.