Plagiarism tool in Java