move check_range to math/error_handling/matrix
Merge pull request #829 from stan-dev/feature/issue-828-move-check-range

move check_range to math/error_handling/matrix