Get excited, folks, because it is time for the final match of Codechef Premier League (CPL)!
Mike and Tracy also want to watch the grand finale, but unfortunately, they could not get tickets to the match. However, Mike is not someone who gives up so easily — he has a plan to watch the match.
The field where the match is played is surrounded by a wall with height $K$. Outside, there are $N$ boxes (numbered $1$ through $N$). For each valid $i$, the $i$-th box has a height $H_i$.
Mike wants to take some boxes and stack them on top of each other to build two towers. The height of each tower is the sum of heights of all the boxes that form it. Of course, no box may be in both towers. The height of each tower should be at least $K$. Then Mike can climb on top of one tower and Tracy on top of the other, and they can watch the match uninterrupted!
While Mike is busy stacking the boxes, Tracy would like to know the smallest number of boxes required to build two towers such that each of them has height at least $K$, or at least that it is impossible to build such towers. Can you help Tracy?

-----Input-----
- The first line of the input contains a single integer $T$ denoting the number of test cases. The description of $T$ test cases follows.
- The first line of each test case contains two space-separated integers $N$ and $K$.
- The second line contains $N$ space-separated integers $H_1, H_2, \ldots, H_N$.

-----Output-----
For each test case, print a single line containing one integer — the smallest number of boxes required to build two towers, or $-1$ if it is impossible.

-----Constraints-----
- $1 \leq T \leq 5$
- $1 \leq N, K \leq 4,000$
- $1 \leq H_i \leq 10^5$ for each valid $i$

-----Subtasks-----
Subtask #1 (30 points):
- $1 \leq N, K \leq 100$
- $1 \leq H_i \leq 100$ for each valid $i$
Subtask #2 (70 points): original constraints

-----Example Input-----
2
8 38
7 8 19 7 8 7 10 20
4 5
2 10 4 9

-----Example Output-----
7
2

-----Explanation-----
Example case 1: The first tower can be built with boxes $8 + 10 + 20 = 38$ and the second tower with boxes $7 + 7 + 8 + 19 = 41$. In this case, the box with height $7$ is left unused.
Example case 2: We only need the box with height $10$ for one tower and the box with height $9$ for the other tower.

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = 'def min_boxes(k, boxes):\n if len(boxes) == 1: return -1\n sum_ = sum(boxes)\n boxes = sorted(boxes, reverse=True)\n n = len(boxes)\n\n\n if sum_ < 2 * k: \n  return -1\n elif boxes[0] >= k:\n  B = boxes[1]\n  if B >= k:\n   return 2\n  for i in range(2, n):\n   B += boxes[i]\n   if B >= k:\n    return i + 1\n  return -1\n\n\n table = [[False for _ in range(2 * k)] for _ in range(n + 1)]\n\n for i in range(n + 1):\n  table[i][0] = True\n \n for i in range(1, n + 1):\n  for j in range(1, 2 * k):\n   if boxes[i - 1] > j:\n    table[i][j] = table[i - 1][j]\n   else:\n    table[i][j] = table[i - 1][j] or table[i - 1][j - boxes[i - 1]]\n\n\n sum_till_here = 0\n for i in range(1, n + 1):\n  sum_till_here += boxes[i - 1]\n  for j in range(k, sum_till_here - k + 1):\n   if table[i][j]:\n    return i\n \n \n\n return -1\n\n\ndef __starting_point():\n test_cases = int(input())\n while test_cases:\n\n\n  n, k = map(int, input().split())\n  boxes = list(map(int, input().split()))\n\n  print(min_boxes(k, boxes))\n\n  test_cases -= 1\n__starting_point()'
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 13738