lib/permutation.go