Object Recognition Based On Multi-Agent Spatial Reasoning