New implementation of HashDice