#include <bits/stdc++.h>
using namespace std;
int dp[2200];
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int x = 0, s = 1, val;
    memset(dp, 0, sizeof(dp));
    vector<int> v, temp;
    cin >> x;
    s = 1;
    for (int i = 1; i < 2 * n; i++) {
      cin >> val;
      if (val > x) {
        v.push_back(s);
        s = 1;
        x = val;
      } else {
        s++;
      }
    }
    v.push_back(s);
    dp[0] = 1;
    for (int i = 0; i < v.size(); i++) {
      temp.clear();
      for (int j = 0; j < 2100; j++) {
        if (dp[j]) {
          if (j + v[i] <= 2000) temp.push_back(j + v[i]);
        }
      }
      dp[v[i]] = 1;
      for (int j = 0; j < temp.size(); j++) dp[temp[j]] = 1;
    }
    if (dp[n] == 1) {
      cout << "YES" << '\n';
    } else {
      cout << "NO" << '\n';
    }
  }
}
