more accurate factorial when computing bernoulli number