Call reduce on the original task to accumulate the data.
Switched input and output int types to be unsigned int.