added functions in SGNDArray
Merge pull request #2490 from Jiaolong/nd_array

added functions in SGNDArray