cxx heap lesson