Added codeBuffer() implementation, and reading and writing to buffers in HuffmanEncryption.