add heapq library