majority-logic decoding