Add ML potential

Add simple cost function to do numerical ML estimate of distribution parameters.
Jake, this is the first modest step on the way to the Bayesian inference solution :)