Applied combinatorics on words - Lothaire, M. (Encyclopedia of mathematics and its applications, 2007)