Friendship algorithm the big bang theory