add permutation algorithm underlied with STL next_permutation algorithm