Merge k Sorted Lists refactored