Update bernoulli.cpp