#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> pos(n * 2);
    for (int i = 0; i < n * 2; ++i) {
      int a;
      cin >> a;
      --a;
      pos[a] = i;
    }
    vector<int> pieces;
    int l = n * 2;
    for (int i = n * 2 - 1; i >= 0; --i) {
      if (pos[i] < l) {
        pieces.emplace_back(l - pos[i]);
        l = pos[i];
      }
    }
    if (l > 0) pieces.push_back(l);
    sort(pieces.begin(), pieces.end());
    vector<char> got(n + 1, false);
    got[0] = true;
    for (int i = 0; i < pieces.size(); ++i) {
      for (int j = n; j >= 0; --j) {
        if (got[j] && j + pieces[i] <= n) {
          got[j + pieces[i]] = true;
        }
      }
    }
    if (got[n])
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
