merge k sorted lists with multiple error