reimplemented affinity propagation, the updating now uses much more efficient implementation that avoids temporary array allocation.