List sum and max implementations