#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  long long ar[100000], ara[100000];
  vector<long long> v;
  while (t--) {
    long long n, c = 0, i, k = 0, trgt = 0;
    cin >> n;
    for (i = 0; i < 2 * n; i++) cin >> ara[i];
    long long p = ara[0];
    for (i = 1; i < 2 * n; i++) {
      if (ara[i] > p) {
        ar[k] = c + 1;
        k++;
        c = 0;
        p = ara[i];
      } else {
        c++;
      }
    }
    ar[k] = c + 1;
    k++;
    bitset<40000> b;
    b[0] = 1;
    long long j;
    for (i = 0; i < k; i++) {
      for (j = n; j >= 0; j--)
        if (b[j]) b[j + ar[i]] = 1;
    }
    if (b[n])
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
