rust#0.11 compatible

I forked this because I want to do some machine learning work in rust