Support GpuCumsum on 3D array.

Modified GpuCumsum op to support 3D array.
Why change to a square shape?