still can't remove max, which is the whole point
removing max almost works, but if heap contains only 1 element, the top field of the heapmanager should be set to NULL, right now it isn't