fix solution for binary_gray

I'm not sure what binary_gray was doing, but I don't think it was doing
it right.  It should work now as intended.

Also fixed spelling of Gray.
Merge pull request #314 from ayr0/generators

fix solution for binary_gray