Update Rust versions so as to compile and run with latest version of Rust.
Add fold implemented variants of sequential algorithm for Rust codes.