Support GpuCumsum on 3D array.

Modified GpuCumsum op to support 3D array.
Why is there an offset for Y and one for Z?