How do you check matrix is a parity matrix?