A Numerical Algorithm for the Decomposition of Cooperating Structured Markov Processes