Multiway partitioning via geometric embeddings, orderings, and dynamic programming | Synapse