Add diff method as an equivalent to numpy.diff
#1437
Merged
diff method as an equivalent to numpy.diff
#1437