added functions in SGNDArray

@iglesias @hushell
Could you help me to check this patch? Thanks!
Wouldn't be good to have wrapper for doing this?