New algorithm for Mercury's Perihelion Precession