#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T--) {
    int n;
    cin >> n;
    vector<int> a(2 * n);
    int mx = 0;
    vector<int> subset;
    vector<int> ind;
    for (int i = 0; i < 2 * n; ++i) {
      cin >> a[i];
      if (a[i] > mx) {
        mx = a[i];
        ind.push_back(i);
      }
    }
    ind.push_back(2 * n);
    for (int i = 1; i < ind.size(); ++i) {
      subset.push_back(ind[i] - ind[i - 1]);
    }
    for (int i = 0; i < subset.size(); ++i) {
    }
    vector<int> dp(4001);
    dp[0] = true;
    for (int i = 0; i < subset.size(); ++i) {
      for (int j = 4001; j >= 0; --j) {
        if (j - subset[i] >= 0 && dp[j - subset[i]]) {
          dp[j] = true;
        }
      }
    }
    if (dp[n]) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
}
