[clustering.xmeans] Class refactoring (issue #125)