add computation of similarity score between a user and its friends.