Add solution to gray code