untested LZ impl (contributes to #26)