Updated the compile-time metaprogramming utilities

- Added log10 and exp10.
- Added test cases.