Overloading of method matrixPrint