In the previous problem Chandu bought some unsorted arrays and sorted them (in non-increasing order). Now, he has many sorted arrays to give to his girlfriend. But, the number of sorted arrays are very large so Chandu decided to merge two sorted arrays into one sorted array. But he is too lazy to do that. So, he asked your help to merge the two sorted arrays into one sorted array (in non-increasing order).

Input:
First line contains an integer T, denoting the number of test cases.
First line of each test case contains two space separated integers N and M, denoting the size of the two sorted arrays.
Second line of each test case contains N space separated integers, denoting the first sorted array A.
Third line of each test case contains M space separated integers, denoting the second array B.

Output:
For each test case, print (N + M) space separated integer representing the merged array.

Constraints:
1 ≤ T ≤ 100
1 ≤ N, M ≤ 5*10^4
0 ≤ Ai, Bi ≤ 10^9

SAMPLE INPUT
1
4 5
9 7 5 3
8 6 4 2 0

SAMPLE OUTPUT
9 8 7 6 5 4 3 2 0
num_test_cases = 0
#Input for number of test cases
try:
    num_test_cases = int(raw_input())
except ValueError as ve:
    raise ValueError('Invalid input for number of test cases..')
if num_test_cases > 100 or num_test_cases < 1:
    raise ValueError('Invalid input for number of test cases. Range:1 <= T <= 100')

for n in range(num_test_cases):
    x = y = 0
    arr_x = None
    arr_y = None
    #Input for size of arrays
    try:
        x,y = tuple(map(int, raw_input().split(' ')))
    except ValueError as ve:
        raise ValueError('Invalid input for size of arrays..')
    #assuming the input to be in non-increasing order
    if x > 50000 or y > 50000 or x < 1 or y < 1:
        raise ValueError('Invalid input for size of arrays. Range:1 <= N, M <= 5*10^4')
    
    
    #Input for first array
    try:
        arr_x = map(int, raw_input().split(' '))
    except ValueError as ve:
        raise ValueError('Invalid input for first array..')
    #assuming the input to be in non-increasing order
    if arr_x[0] > pow(10,9) or arr_x[-1] < 0:
        raise ValueError('Invalid input for array values. Range:0 <= Ai, Bi <= 10^9.')

	
    #Input for second array
    try:
        arr_y = map(int, raw_input().split(' '))
    except ValueError as ve:
        raise ValueError('Invalid input for second array..')

    if arr_y[0] > pow(10,9) or arr_y[-1] < 0:
        raise ValueError('Invalid input for array values. Range:0 <= Ai, Bi <= 10^9.')

    arr_final = []
    i = j = 0
    while i < x and j < y:
        if arr_x[i] >= arr_y[j]:
            arr_final.append(arr_x[i])
            i += 1
            if i == x:
                arr_final.extend(arr_y[j:])
                j = y
        else:
            arr_final.append(arr_y[j])
            j += 1
            if j == y:
                arr_final.extend(arr_x[i:])
                i = x
    print ' '.join(map(str, arr_final))