Thanks to Jonathan Nieder.
that use something else than 2^n as the dictionary size. Thanks to Dan Shechter for the bug report.