added parameter estimation for any distribution