update Next_Permutation