Added function intersectionList
Added function for Greedy algorithm (AIP) (partial)