Summing all elements in an array.