Finds the largest value using a comparator
the list of values to compare
compares the values
the largest value
thrown if values is empty
values
Finds the largest value using a comparator