Merge k lists.