shad/MT: add one threaded kmeans.