add a sim hash implementation