Small change to printMatrix