Recognizing certain repetitions and reversals within stringsZvi GalilJoel Seiferas1976FOCS 1976Conference paper