grey codes program/// not complete