On the homology classes defined by closed geodesics on the modular curve