implementation of quicklz