For a k-way merge with k>2 consider using a PriorityQueue instead of multiple 2-way mergers for enhanced performance.