Converting a Python script to Rust (4: Adding parallelism through rayon)

Porting a Python script to Rust, to take advantage of the type safety, of the speed, of the safe parallelism and of the easy refactoring of Rust. In this part, we add the rayon library, to speed up things through parallelism.