complete permutation.cc