Improved mechanism for initially adding nodes with priority to the heap.