refactor class_density_cluster. __init__.  Add exception handling for non-distance metric input.  Defined input as matrix and labels.