Add mutable chunks

Mutating chunks in-place performs much better than creating copies
of chunks every time something changes. Mutable and immutable chunks
are put in different modules.