swap (a, b) => move a to temp, move b to a, move temp to b.