Fixed minhash algorithm