Initial steps fo parallel kmeans impl