Algorithm and dummy ideas practice in Rust