Make the Rust code OO style and add timings.