struct Point:Equatable { let x:Int let y:Int } func == (p1:Point, p2:Point) -> Bool { return (p1.x == p2.x) && (p1.y == p2.y) }