Elements of Classical and Geometric Optimization