Switched to maxheap, all updates now in maxheap.py