adds gray code sequence generator