update thrid trial of next-permuation