Create heap_allocation.cpp

C++ version of this program.