fix distributed KMeans bugs and add javasingle version