Photonic implementation of an elementary unit of artificial intelligence based on solitonic waveguides