Finding the area between curves that intersect at more than two points