Switch to column-major representation.

Matrices are now column-major.
This will be useful to interop with opengl and lapack.