minhashing trivial implementation