Numerical Algorithms for Homoclinic Orbits