Measures for finding repeats