added functions in SGNDArray

@iglesias @hushell
Could you help me to check this patch? Thanks!
For single value, `+=`, `-=` can be done like this:
```SGNDArray<T> nd_array(d, nd);

```