Rust data structure

Recoding some old CS data structures in Rust, for training purposes