Perform a swap without a temporary variable