Made changes to divisive clustering code