create, assign, and index multidimensional arrays