Implement Enum.max and Enum.min