Geometric Phases in Classical and Quantum Mechanics