sums the numbers in a given list