template bool max(T1 a, T2 b) { return a < b ? b : a; }