Added repetition-measuring

It works! With test data and results. Also it's fun to play with.