Davies-Bouldin index implementation