Added maxBy method to EquaSet.