the map length must be >> len(probas) (or must be at least as big as the reciprocal of the smallest non-zero probability??)