Convert KMeans to a form that we can parallelize

See #10.
Rename the variables so our simple naming lookup can find the binding

See #10.