On the Groebner basis of a family of quasi-cyclic LDPC codes