Algorithm 887 | Synapse