[linkedlist] write code for merge k sorted list