Update merge k sorted lists

second method