Create an indexing grid from just a vector of maximum dimension sizes

TEG(vec)

## Arguments

vec

A vector of maximum array sizes

T. Carruthers