Memory format changed

Moving over to use a multi-dimensional array instead of a linear one
changed the layout from column-major to row-major.

See commit f8888d0c8814baf4f7a4f5fee1ec84550d903d44