add basic bit reverse