Fix deprecation warnings

Vec shift was replaced with remove
Merge pull request #9 from infinityb/master

Fix deprecation warnings