It Works!!

Modified definition of Nan - Added isNan function