Changing to row-major memory