ML estimation for theta.

Adds the function to do ML estimation on a cat object.