Adding c++ memory demo