Added function upper_bound_index_cusps_in_JG_torsion