Beam Optics and Orbits: Methods Used at the Tevatron Accelerators