Remove custom math functions in favour of C++ standards.
Merge branch 'master' of github.com:heinermann/Chkdraft