A Numerical Approach to Solve Finite Horizon Optimal Control Problems Exhibiting the Turnpike Property