solve merge k sorted lists