Determination of Orbits of Comets and Asteroids