Create GrayCode