distortionMin function

Distortion Minimization via K-means