Update NextPermutation, add a new function 'previousPermutation'
Update Permutations, 'count+dfs' way should be added.