Added explicit namespace for std::isnan