Initialize a two-dimensional array