Array Reduce Method to gather the sum of an array