Fixed ProbabilityModel

Array.forEach doesn't even optimize for sparse arrays