Kmeans cleanup

if you got the patience, we usually dont do CamelCase but camel_case variable naming, so this would be x_size. (not too severe, but its an easy find-replace