Replace the swap methods with the one provided by the standard collection library.