add graphlab implemention of affinity propagation and similarity calclator