use clock() for rand... openmp-ify assign_centroids