Project Euler #165: Intersections