starter code for parallel kmeans