sort list
merge k sorted lists