#include <bits/stdc++.h>
using namespace std;
long long int power(long long int a, long long int b, long long int m) {
  long long int ans = 1;
  while (b) {
    if (b & 1) ans = (ans * a) % m;
    b /= 2;
    a = (a * a) % m;
  }
  return ans;
}
vector<long long int> v;
long long int n;
long long int cache[4006][4006];
bool go(long long int ind, long long int s) {
  if (ind == v.size() - 1) return s == n;
  if (cache[ind][s] != -1) return cache[ind][s];
  bool ans = go(ind + 1, s) or go(ind + 1, s + v[ind]);
  return cache[ind][s] = ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    cin >> n;
    long long int a[n + n + 2];
    v.clear();
    for (long long int i = 1; i < n + n + 1; i++) cin >> a[i];
    long long int low = 1, high = n + n;
    while (high) {
      long long int curr = 0;
      for (long long int i = low; i < high + 1; i++)
        if (a[i] > curr) curr = a[i];
      long long int cnt = 0;
      for (long long int i = high; i >= low; i--) {
        cnt++;
        if (a[i] == curr) {
          high = i - 1;
          break;
        }
      }
      v.push_back(cnt);
    }
    for (long long int i = 0; i < n + n + 1; i++)
      for (long long int j = 0; j < n + n + 1; j++) cache[i][j] = -1;
    if (go(0, 0))
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
