Add portable isNan() and isInf()

+ Add following functions that can be used over multi platform
```c++
bool isNan(double _v)
bool isNan(const Eigen::MatrixXd& _m)
bool isInf(double _v)
bool isInf(const Eigen::MatrixXd& _m)
```
+ This pull request fix #166