Sum the minimum and maximum elements