fixes issue #230.

This fixes the `bin/print` output to be in row-major.