Sum of elements of a array