Chow's Method of Optimal Control: A Numerical Solution