Update CUtilities.cpp

- C++ish reimplementation of generateHmac() and md5() methods, intoduces more safety to memory
- Guaranteed thread-safety in generateHmac()