Enable max and min for non-numbers but comparable types.

Computes the max value from the array