def swap[A,B](a: A, b: B): (B, A) = (b, a)