ReduceDemo and PrefixSumDemo