#P1873E. Building an Aquarium
Building an Aquarium
Description
You love fish, that's why you have decided to build an aquarium. You have a piece of coral made of columns, the -th of which is units tall. Afterwards, you will build a tank around the coral as follows:
- Pick an integer — the height of the tank. Build walls of height on either side of the tank.
- Then, fill the tank up with water so that the height of each column is , unless the coral is taller than ; then no water should be added to this column.

The first line contains a single integer () — the number of test cases.
The first line of each test case contains two positive integers and (; ) — the number of columns of the coral and the maximum amount of water you can use.
The second line of each test case contains space-separated integers () — the heights of the coral.
The sum of over all test cases doesn't exceed .
For each test case, output a single positive integer () — the maximum height the tank can have, so you need at most units of water to fill up the tank.
We have a proof that under these constraints, such a value of always exists.
Input
The first line contains a single integer () — the number of test cases.
The first line of each test case contains two positive integers and (; ) — the number of columns of the coral and the maximum amount of water you can use.
The second line of each test case contains space-separated integers () — the heights of the coral.
The sum of over all test cases doesn't exceed .
Output
For each test case, output a single positive integer () — the maximum height the tank can have, so you need at most units of water to fill up the tank.
We have a proof that under these constraints, such a value of always exists.
Note
The first test case is pictured in the statement. With we need units of water, but if is increased to we need units of water, which is more than . So is optimal.
In the second test case, we can pick and add units to each column, using a total of units of water. It can be shown that this is optimal.
In the third test case, we can pick and use all of our water, so it is optimal.