A Document Comparison Scheme for Secure Duplicate Detection