adding failing fdim test
fixed implementation of fdim by calling the version in math.h
adding a check for isnan because Windows operates differently than Mac
fixed fdim test
Merge pull request #870 from stan-dev/feature/issue-853-fdim-nan

Fixes #853. Feature/issue 853 fdim nan