added functions in SGNDArray

@iglesias @hushell
Could you help me to check this patch? Thanks!
keep this in mind :) It's fine to open an issue after this PR.