Logarithmic compressor implementation