refactored names of method parameters on Heap class