Add a *poor* skeleton of dynamic blocks

The code calls for refactoring!
Copy the Huffman tree tests from the old code