Creates and initializes two-dimensional arrays