Assigning nodes to the nearest center

After the cluster centers (exemplars) are determined in the first phase of the algorithm, each node is assigned to the nearest center. Our implementation provides the following options: