Added `indices` function

`indices` iterates over a container's indices.
The commit adds a type-safe, generic implementation, example code, and
an updated description in the README file.