Modifications to kmeans algorithm in gridgain - return hash map instead
of list in 'find closest centroid' step.