Combinatorics on words - Lothaire, M. (Cambridge University Press, 1983)