Implemented LempelZiv algorithm (slow linear search however).