move to using column_major matrices