An Algorithm for Distributed Computation of Reachable Sets for Multi-Agent Systems