Algorithms on strings - Crochemore, Maxime (Cambridge Univ. Press, 2014)