lzma: implemented a rangecodec using a byte write counter
lzma: implemented a rangecodec using a byte write counter

For the implementation of the Compressor I need a encoder that has a
mechanism to count the bytes written. I have done it to provide a byte
write counter counting the bytes written.

uli-go/xz,uli-go/xz