Initialize with nan instead of zeros

zero means zero! NaN should stay NaN.
Also, if you have missing value, it should be NaN.