Added new class for thread local storage.

Using said class in the Compressor class.