added new classes to perform the maximum likelihood estimation and also
the bernoulli estimation.