added printMatrix function to matrices.py