Support GpuCumsum on 3D array.

Modified GpuCumsum op to support 3D array.
That might be maxGridZ.