Added printMatrix().