An Efficient Pseudospectral Method for Solving a Class of Nonlinear Optimal Control Problems. (17th September 2013)