k-means clustering in php