The input contains several test cases. The first line contains an integer t (t <= 15) denoting the number of test cases. Then t test cases follow. Each of them begins with a line containing two numbers n and d (1 <= n, d <=10^6), n is the number of skyscrapers and d is the number of days which the major wants
to query.
Skyscrapers are numbered from left to right. The next line contains n integers h1,h2,..., hn where 1 <= hi <= 10^9 is the height of skyscraper i. The third line of a single test case contains d numbers tj such that 0 <= t1 < t2 < ... < td-1 < td <=10^9.