Optimal arrangement of components via pairwise rearrangements | Synapse