added solutions for sort color and graycode