Dividing data into K partitions by maximum likelihood is now implemented. Also implemented a bootstrap function for the partitioning.
This should generate a distribution of possible assignments weighted by likelihood, to average over the uncertainty in the assignment.
This should be incorporated into the ouch package as a way of generating possible paintings. Will require either a simmap that allows changes only at nodes or a modification of the ouch code to allow changes along a branch.