Computes the sum of an array of one number