Critical behavior in a cross-situational lexicon learning scenario