more general way to manage probabilities in the UtfGrids