Solution for Merge K Sorted lists