add the method to report a list of gray code of number n