Add higher order method for finding sums.