estimate_pars function

Estimates the distributions using mle.