Move permutation test into C++'s Euler library.
Improve performance of C++'s problem 52.