WIP: Reduction by using global memory