LDPC code generator