[Gray code] Gray code generation.