Improved print in matrix