add a getRetElem method in the abstractHeap so that we can create retElem in the heap to handle instantiation