static int maxX(Iterable l) { int max = Int.MIN_VALUE; fOr (Pt p : l) max = max(max, p.x); ret max; }