z2 fix

berlekamp Q matrix fix