add 1d and 2D wstat
Merge pull request #96 from registerrier/wstat

add 1d and 2D wstat