hi how will i simulate the damerau leveshtein distance algorithm so as to detect plagiarism in documents? thanks!