sum_array

Adds all the elements of the input array, and returns the resulting sum.