Added k-way merge for merge k sorted lists