Sparse implementation of the affinity propagation clustering algorithm.