added functions in SGNDArray

@iglesias @hushell
Could you help me to check this patch? Thanks!
why += -= are different from *=? Should we also consider the case with a single number?