added multivariate Bernoulli distribution and thorough unit tests