improved lc merge k sorted lists (merge sort and heap sort)