Fit function

Fit the Dirichlet process object