Two short implementations of kmeans, parallel and streaming