create nsmash function.
Merge pull request #1 from jianxing-guo/master

create nsmash function.