Assorted algorithms implemented in Rust