bernoulli_cusum function

Risk-adjusted Bernoulli CUSUM