Dan Gusfield (1997). Algorithms on strings, trees, and sequences computer science and computational biology.. https://knowledgetrend.com/paper/algorithms-on-strings-trees-and-sequences-computer-science-and-computational-biology