fixed rosettacode Bernoulli number task code