Implemented step to find closest centroid for every example