Not quite working

The heapify method doesn’t work in the context I used it. Not sure if
that’s my fault
?