Encoding and decoding works now
Issues with ranges getting so small that longer and more unique buffers will fail the encoder and decoder. Floating point is not going to cut it.