Fixed the PrintMatrix method