Update gray_code.cpp