Tools for generating Gray codes.