Dueling Philosophers problem (permutations)