fixed broken minhash implementation