Akshara is a Maths teacher at Dynamic Public School.One day she decided to take an unusual test of all her students.She took all her students to a fair.There she took them to a candy room.The room had 2 doors and behind each door was unlimited supply of candies.The excitement of the students could not be measured.Each student wanted a specific amount of candies.Now here was the test.

At a time 1 student could enter 1 door.After he exits another will enter.No time is lost when there is change of students.For proccessing 1 candy it took 1 second.The teacher gave exactly X amount of time for all the students
to get their specific amount of candies.So the students ask you for help in determining whether it is possible for all the students to get their candies or not  in X amount of time.

Input:

The first line contains T denoting the number of test cases.Each testcase consist of two lines containing n and x denoting the number of students and the time given by the teacher.The next line contains n space separated numbers denoting the amount of candy each student wants.

Output:

For each testcase print YES if it is possible or NO.

Constraints:

1 ≤ T ≤ 25

1 ≤ N ≤ 100

1 ≤ x ≤ 100000

0 ≤ A[i] ≤ 100

SAMPLE INPUT
2
3 4
2 4 2
3 3
3 3 3


SAMPLE OUTPUT
YES
NO

Explanation

In the first testcase:

At t=0 Student 3 enters door 1 and student 2 enters door 2.

At t=2 Student 1 enters door 1 and student 3 exits.

At t=4 Student 2 and 1 exits.
'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name

print 'Hello World!'
'''

def maxsum(c, i, w):
    if (i <= 0 or w <= 0):
        return 0

    if (c[i-1] > w):
        return maxsum(c, i-1, w)
    if (d[i-1][w] != -1):
        return d[i-1][w]
    d[i-1][w] = max(maxsum(c, i-1, w), c[i-1] + maxsum(c, i-1, w-c[i-1]))
    return d[i-1][w]

t = int(raw_input())
while (t):
    t -= 1
    count = 0
    s, W = map(int,raw_input().strip().split())
    arr = map(int, raw_input().strip().split())
    d = [[-1]*(W+1) for i in range(len(arr) + 1)]

    count = maxsum(arr, len(arr), W)

    if ((count <= W) and ((sum(arr) - count) <= W)):
        print "YES"
    else:
        print "NO"
    del d