partially. Slight optimization to not heapppush() many times, instead build a regular list and then heapify.