Initialize with nan instead of zeros

zero means zero! NaN should stay NaN.
Also, if you have missing value, it should be NaN.
Merge pull request #1 from memming/nan

Initialize with nan instead of zeros