The Friendship Algorithm of Sheldon Cooper