Metal

No attempts yetTime limit5sMemory limit256 MB

Problem

A very rare and expensive metal has been found underground. The deposits are spread out through the rock, so the mining plan needs care. The plan is a set of horizontal tunnels joined by vertical elevators. Every elevator connects the right end of one tunnel to the left end of another, and the structure of tunnels and elevators has to be monotone with respect to the ground. That is, starting at the end of the leftmost tunnel and travelling to the end of the rightmost one, you can pass through every tunnel without ever moving left again.

The budget allows only kk horizontal tunnels, where kk is a positive integer, so at most k1k-1 vertical elevators can join them. Each deposit then gets its own vertical shaft dropped from a horizontal tunnel. The cost of mining one deposit is the vertical distance between it and the tunnel that serves it. The cost of mining all nn deposits is the largest of the individual costs.

The deposits are points P={p1,p2,,pn}P = \{p_1, p_2, \dots, p_n\} in the plane, a horizontal tunnel is a horizontal line, and vertical shafts and elevators are vertical lines. The cost of deposit pip_i is cost(pi)\mathrm{cost}(p_i), the vertical distance to the tunnel that serves it, and the total is cost(P)=max1incost(pi)\mathrm{cost}(P) = \max_{1 \le i \le n} \mathrm{cost}(p_i). Because of the monotone condition, the deposits served by one horizontal tunnel form a contiguous run once the points are ordered by xx coordinate.

Given the set PP of nn points and a positive integer kk, write a program that finds the smallest cost(P)\mathrm{cost}(P) obtainable with at most kk horizontal tunnels.

Input

The first line contains the number of test cases TT. Each test case takes two lines. The first line contains the number of deposits nn and the largest number of horizontal tunnels kk. (2n100002 \le n \le 10\,000, k1k \ge 1) The second line contains 2n2n integers x1x_1, y1y_1, x2x_2, y2y_2, \dots, xnx_n, yny_n, the coordinates of p1,p2,,pnp_1, p_2, \dots, p_n, separated by spaces. (100000000xi,yi100000000-100\,000\,000 \le x_i, y_i \le 100\,000\,000) No two points share an xx coordinate.

Output

For each test case, print the minimum value of cost(P)\mathrm{cost}(P) on its own line. That minimum is always a multiple of 0.50.5, so print it with exactly one digit after the decimal point. A minimum of 22 prints as 2.0 and a minimum of 2.52.5 prints as 2.5.