Solved merge k sorted lists problem.