createSeries function

Create a series of indexes