Inserted minHash function for two documents