Add indexing operations

There was a grave lack of indexing operations, so here are some basic variants.