This is really simple. You'll notice that each replaced phase was a 0 or 1 -- a bit. So to scale to 256 you only need 8 (2^8)of those option phrases, or to 65536 16 (2^16) phrases. Such would be easy in an email the length that was posted.
Programmers used to batch environments may find it hard to live without giant listings; we would find it hard to use them. -- D.M. Ritchie