added sparseN
Merge pull request #1 from coronasky/master

added sparseN