Exercise for doing minhash