added NaN test for check_greater
added doc in code for check_greater
Merge pull request #917 from stan-dev/feature/issue-891-check-greater-nan

Feature/issue 891 check greater nan