minor plastic surgery

I didn't know, that you can use return to terminate a thread
Funktionierende main
Fixed tiny memeory leak && experimental overlay

properly free'd memory allocated by *output_threads

Reading the file chunk by chunk wouldn't find repetitions between those
chunks so we might need to overlay the chuncks with an overlay buffer

however this doesn't seem to find any more repetitions so it is
commented out for now