Update k_way_merge.py