added efficient minhash