Create an indexing grid from just a vector of maximum dimension sizes
TEG(vec)
vec
A vector of maximum array sizes
T. Carruthers