Methods for computing the original orbits of comets