toward generalizing
Checking in Hartigan clustering
fixed hartigan smoothing