Plan Merging in Multi-Agent Systems