Improved print of sparse matrices