Move permutation test into library.
Solve problem 52 using Rust.