Notes on Numerical Methods for Solving Optimal Control Problems