first commit
removed debug flags from normal programs
fixed small bug in detecting repetitions
smarter (and MUCH faster) implementation
made output file names more descriptive