added a function that creates a parity-check matrix from the generator matrix