Fix bugs in Rust impl: grid too big; wrong out size in pretty_print