kmeans: Changed to refdispatcher for assign + refactored start

Haven't compiled!!!