Move the genereic pairs, enumerate and setEquals functions from Timetable to shared/utils/functions to make them available for reuse.