[clustering.kmeans] Class refactoring (issue #127)