--- from: http://rosettacode.org/wiki/De_Bruijn_sequences