- add liancheng's solution for the grey code