Create Gray Code (Qiuhan)