Combinatorial algorithms on words - Apostolico, Alberto, 1948-; Galil, Zvi (Springer-Verlag, 1985)