Fixed changes to syntax and API made in Rust
Finally a Working Rust split function.