Add recursive method getHeapSize() to HeapNode. Implement getHeapSize() in classes extending HeapNode. Implement size() method in Heap() class.