LDPC code implementation