Solve gray code
Merge pull request #53 from shengmin/misc

Solve gray code