Using Heapq Python Documentation Built In