Added classify method: returns the index of a cluster for a new data point.