[algospot]
- add permutation code