Stochastic Flows and Geometric Optimization on the Orthogonal Group