Building social networks out of cognitive blocks