Identify Lyndon words. http://en.wikipedia.org/wiki/Lyndon_word