fibonacci and gray code