Added code for divisive clustering