Algorithms on strings,trees, and sequences computer sceince and computational b - Gusfield, Dan (Cambridge Cambridge University Press, 1997)