added functions in SGNDArray

@iglesias @hushell
Could you help me to check this patch? Thanks!
Thanks for pointing this out, I will follow the same interface.