Added the cumsum function similar to numpy's one.

This PR adds a cumsum Op which is a wrapper to one from numpy.

Grad is working for any Nd case.

Related to issue #1080
Based on @jsalvatier's gist: https://gist.github.com/jsalvatier/8378901