Affinity Propagation clustering algorithm implement in Java