SortedSet#max and #min accept comparator block

This was done for compatibility with Enumerable#max and #min.