A PHP implementation of the k-means clustering algorithm