reorganize tree tests
fix stack push expansion
tweak tree iteration
more tests
bitbuf: add write function for multiple bits
first huffman coding implementation
cleanup
fix size rounding bug