Added 3-bit/11-bit compression routine (needs some optimization)