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.