leader_syncs
if (perm_idx == NUM_CHUNKS / 2 && phase == leader_syncs){
for(phase=leader_syncs; phase < NUM_PHASES; phase++){