Gray Code solved