Code compiles but is still broken. Rust throws a capacity overflow error which means Im trying to allocate a vector too large to handle I suppose. Ill look into this later then