adding support for column-major arrays