Feature perm get by index

Fixes #8