Minimization on the Lie Group SO(3) and Related Manifolds