merge k sorted list O(1) space