Fix kmeans if eltype(x) != Float64

Fixes #18.