fixed a little bug

The degenerate case where all points are the same was checked by ( bestPair == null ) instead of ( bestPair[0] == null )