dst_bern function

Bernoulli Distribution