init implement

implement Gray Code
add comment