working draft of global reductions for shared memory