updating minhash code with new outpu classes