Fix build (obsolete tilde)

~[int] is now obsoleted
also sync::Future is now in std::sync::Future

should fix the build

I have here the same concern as in `bubble_sort.rs`