Adapted KMeans example

Adapted KMeans example. Point-cluster assignments are also written as result in addition to the cluster centers.
Adapted KMeans TestCases.