Prints a matrix in the console.