printMatrix function

(Deprecated) Print a matrix, allowing fractions or LaTeX output