naive Rust implementation of data analytics algorithms