adding smaz compression utility function