Stigmergic reinforcement learning using All-Optical soltionic X-junctions