Reed–Muller code implementation