NaN support #126

Note that for a numpy array `x`, `x.mean()` exists, but `x.nanmean()` does not exist. I've implemented it. Perhaps this is not the right direction for this project.