Added elegant algorithm to generate {0,1}^n; adapted from Knuth's TAOCP, 4th ed
Added elegant algorithm to generate {0,1}^n; adapted from Knuth's TAOCP, 4th ed
Slight changes