KMeans, now with adjustable distance measurer.

Also, deprecated untyped apply on HclAnalysisController
Merge pull request #650 from lev-kuznetsov/master

KMeans, now with adjustable distance measurer.