working min hashing