Introduced the compareTo method on the MaxOperator interface to avoid edge case failures when comparing doubles