Changed matrixBool tostring method