A Plan Fusion Algorithm for Multi-Agent Systems