HW5:task2: functions of intersect & union remade for constant link as argument