#include <bits/stdc++.h>
using namespace std;
void fast_IO() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
}
const long long INF = 1e18;
const long long DEBUG = 1;
long long n;
vector<long long> a;
vector<long long> dp;
vector<long long> b;
void init() {
  cin >> n;
  long long n2 = 2 * n;
  a.resize(2 * n);
  for (long long i = 0; i < n2; ++i) {
    cin >> a[i];
  }
  b.clear();
  long long lst = 0;
  for (long long i = 0; i < n2; ++i) {
    if (a[lst] < a[i]) {
      b.push_back(i - lst);
      lst = i;
    }
  }
  b.push_back(n2 - lst);
  dp.clear();
  dp.resize(n + 1, 0);
  dp[0] = 1;
}
signed main() {
  long long q = 1;
  cin >> q;
  for (long long qq = 0; qq < q; ++qq) {
    init();
    for (long long elem : b) {
      for (long long i = n; i >= 0; --i) {
        if (dp[i] == 1 && i + elem <= n) {
          dp[i + elem] = 1;
        }
      }
    }
    if (dp[n] == 1) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
