Bit reverse generation