dunn_metric function

Method to calculate the dunn.