Use a priority queue to merge k sorted linked list in O(Nlgk)