Memory Profiling C/C++ Code with Valgrind