A Geometrically Convergent Algorithm for Solving Optimal Control Problems