Implementation of LZ-index for extracting text