better printMatrix()