Faster probability calculator, tests