using ``heapq`` in ``main_cli``