O(n log n) algorithm for finding repetition in a string | lit.salon