array, array[i][j] with memory