Fix Heap.forEach to just copy the array but keep the same references to the elements inside
HashTable.forEach now receives key and value