Heap insert and modify abort if node weight is null