init k way merge