Codes for finding documents similarities