Rename .cc to .cpp.
Use exceptions for error handling and only c++ header includes.
Add a C99 version of entropy-calculator.