Added shared memory reduce