stores 2d arrays of data to fill memory, then prints