The Algebra of Organic Synthesis: Green Metrics, Design Strategy, Route Selection, and Optimization