Fix vector indexing deprecation warning
Merge pull request #6 from ebfe/vec-index

Fix vector indexing deprecation warning