fixing isnan to std::isnan
Merge pull request #878 from jlevallois/MinorFixIsNaN

fixing isnan to std::isnan