Added method for iterating through index ranges

Closes https://github.com/bvssvni/ld30/issues/9