Kmeans cleanup

@karlnapf  Both minibatch and lloyd use the same code here.
A new internal helper method ( ` initialize_training()`  ??) could be added to CKMeansBase to handle the repeating code, which I then call in both MB and lloyd.
Is this what u meant? if not pls give me some more hint.