Algorithms in Rust